﻿using Microsoft.AspNetCore.Mvc.Filters;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace FAQPro.Filters
{
    public class AuthorizationFilter : IActionFilter
    {
        public void OnActionExecuted(ActionExecutedContext context)
        {
            //do something after the action executes
        }

            /// <summary>
            /// 执行前进行登陆验证
            /// </summary>
            /// <param name="context"></param>
        public void OnActionExecuting(ActionExecutingContext context)
        {
            //do something before the action executes
        }
    }
}
